from apps.verifications import constants
from celery_tasks.main import celery_app
from libs.yuntongxun.sms import CCP


@celery_app.task
def send_sms_code(mobile, sms_code):
    CCP().send_template_sms(mobile, [sms_code, constants.SMS_CODE_REDIS_EXPIRES // 60], constants.SEND_SMS_TEMPLATE_ID)